package com.emmy.walnut.model;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

import java.util.BitSet;

/**
 * @ClassName User
 * @Description TODO
 * @Author zhouxuan
 * @Date 2020/02/04 12:20
 * @Version 1.0
 */
@Entity
public class User {
    @PrimaryKey
    @NonNull
    private String username;

    @ColumnInfo
    private String password;

    @ColumnInfo
    private String avatar;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
